package com.axs.camera.bean;

import com.google.gson.annotations.SerializedName;
import com.jeremyliao.liveeventbus.core.LiveEvent;

import java.util.List;

public class PhotoResultBean {


    @SerializedName("log_id")
    private long logId;
    @SerializedName("result")
    private List<ResultDTO> result;
    @SerializedName("error_msg")
    private String errorMsg;
    @SerializedName("error_code")
    private int errorCode;

    public long getLogId() {
        return logId;
    }

    public void setLogId(long logId) {
        this.logId = logId;
    }

    public List<ResultDTO> getResult() {
        return result;
    }

    public void setResult(List<ResultDTO> result) {
        this.result = result;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public static class ResultDTO implements LiveEvent {
        @SerializedName("score")
        private double score;
        @SerializedName("name")
        private String name;
        @SerializedName("baike_info")
        private BaikeInfoDTO baikeInfo;

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public BaikeInfoDTO getBaikeInfo() {
            return baikeInfo;
        }

        public void setBaikeInfo(BaikeInfoDTO baikeInfo) {
            this.baikeInfo = baikeInfo;
        }

        public static class BaikeInfoDTO {
            @SerializedName("baike_url")
            private String baikeUrl;
            @SerializedName("image_url")
            private String imageUrl;
            @SerializedName("description")
            private String description;

            public String getBaikeUrl() {
                return baikeUrl;
            }

            public void setBaikeUrl(String baikeUrl) {
                this.baikeUrl = baikeUrl;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public String getImageUrl() {
                return imageUrl;
            }

            public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
            }
        }


    }
}
